home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 27 / Mac Magazin and MacEasy Magazine CD - Issue 27.iso / Grafik & Text / VText / Read Me -- Rulers < prev    next >
Text File  |  1996-10-07  |  6KB  |  75 lines

  1. ViviStar Consulting
  2. www.vivistar.com
  3.  
  4. This document provides a brief description of the rulerset features of the VText library.  Rulersets control the formatting of text paragraphs.  
  5. VText is a source code library for developers only.
  6. Axioms
  7. •    Every paragraph has one and only one rulerset associated with it.
  8. •    Rulersets are independent of the stylesets that hold font and style information.
  9. Rulersets
  10. Rulerset data members include:
  11. name    name of rulerset
  12. direction    left_to_right or right_to_left,
  13. justification    leading, trailing, centered, or filled justification
  14. ruler_start    delta relative to text image margins and direction
  15. ruler_end    delta relative to text image margins and direction
  16. ruler_indent    for first line of paragraph.  Delta relative to text image margins and direction.
  17. space_before_line    space before every line of paragraph
  18. space_after_line    space after every line of paragraph
  19. space_before_paragraph    additional space before first line of paragraph
  20. space_after_paragraph    additional space after last line of paragraph
  21. tabs    list of tabs for the rulerset
  22. Tabs
  23. Data members of tab records include:
  24. orientation    leading, trailing, centered, aligned
  25. location    location of tab relative to ruler_start
  26. repeating_every    if non zero, the interval between tab repetitions.  If zero, there is only one tab stop
  27. delimiter    for aligned tabs, the character to align the text on
  28. Directions
  29. It is natural for languages that have a right to left direction to be layed out using a right to left direction.  This means that on a rulerset with right to left direction:
  30. ruler_start is the right side of the text image,
  31. ruler_end is the left side of the text image,
  32. sequential tabs proceed right to left, and
  33. a tab at position "0" would refer to the right side of the ruler.
  34. When considering justification, tabs, and the rulerset direction, "leading" and "trailing" mean left or right dependent on the rulerset direction.
  35. When runs of characters with differing directions occur in the same paragraph, the display ordering of that text also considers tabs.  Specifically, a run of mixed directional text associated with one tab is ordered independently of text associated with another tab.
  36. Examples
  37. This document uses several different rulersets.  Some of the rulersets used include those in the "Demo/RulerSet" menu.  Others include rulersets that were created using AppleScripts and subsequently saved in the rulerset flavors associated with this file.  The first release of VText does not have a GUI widget for user manipulation of rulers.  Nevertheless, it is easy for developers to create custom rulersets for their applications.
  38. Justification
  39. Many of the paragraphs in this document have leading and filled justification.
  40.  
  41. Center justification is also available.
  42. Center justification is great for poems.
  43. Center justification is great for headlines.
  44. Center justification is great to divide sections.
  45.  
  46. Trailing justification is also available.
  47. Trailing justification is also great to divide sections.
  48. Trailing justification is great for date stamps.
  49. Trailing justification is great for time stamps.
  50. Indented, justified paragraphs:
  51. Indented paragraphs are the paragraphs many of us are familiar with from our writing composition classes.  Indented paragraphs are the paragraphs many of us are familiar with from our writing composition classes.  Indented paragraphs are the paragraphs many of us are familiar with from our writing composition classes.  Indented paragraphs are the paragraphs many of us are familiar with from our writing composition classes. 
  52. Indented paragraphs are the paragraphs many of us are familiar with from our writing composition classes.  Indented paragraphs are the paragraphs many of us are familiar with from our writing composition classes.  Indented paragraphs are the paragraphs many of us are familiar with from our writing composition classes.  Indented paragraphs are the paragraphs many of us are familiar with from our writing composition classes. 
  53. Hanging, justified paragraphs:
  54. Hanging text blocks are useful for bullet lists and other special formatting requirements.  Hanging text blocks are useful for bullet lists and other special formatting requirements.  Hanging text blocks are useful for bullet lists and other special formatting requirements.  Hanging text blocks are useful for bullet lists and other special formatting requirements.  
  55. Hanging text blocks are useful for bullet lists and other special formatting requirements.  Hanging text blocks are useful for bullet lists and other special formatting requirements.  Hanging text blocks are useful for bullet lists and other special formatting requirements.  Hanging text blocks are useful for bullet lists and other special formatting requirements.  
  56. Paragraph spacing:
  57. Many of the paragraphs in this document have additional space before and or after the paragraph.  This paragraph also has additional spacing between individual lines.  Use line spacing to provide double spacing and triple spacing -- any spacing.  Many of the paragraphs in this document have additional space before and or after the paragraph.  This paragraph also has additional spacing between individual lines.  Use lines spacing to provide double spacing and triple spacing -- any spacing.  
  58. Data alignment:
  59. VText tabs are general purpose as the following lines illustrate.  Much of the text below will appear as jibberish -- the fonts required to display the text correctly aren't installed in the current system folder.
  60. leading    centered    aligned.tab    lagging
  61. ◊—·†¬Â«ÂÍ    Â—„“    «‰—‚†«‰÷«»◊.Üˉ    ÊÁ«Í…†«‰ƒ†Œ—…
  62. ¡Ïµº    ÷––ƒ    Ω·√À.«∞Ω¯    ¬‰∫Û
  63. ¯fi‡÷œ    ÷Œ÷ΔΔÂΔÏfi    Úfi¯›ÍŸ.˘Ÿ¯«ÍŸ    ÙœΔ‚ΔÂΔ¯
  64. àÍî‘    íÜêS    àÍèèÇ….ëOêi    íxÇÍÇÈ
  65. dev    botlh    joj.duv    qav    
  66. ‚ÂÒÚË    ˆÂÌÚ    Ó‚Ì˚È.‚ÔÂfi‰s    ÓÒÚ‡Ú¸
  67. Here are the same lines of text with a right to left ruler.  Note that the ordering of the tabs is right to left and that tab stops are relative to the ruler start -- the right side.
  68. leading    centered    aligned.tab    lagging
  69. ◊—·†¬Â«ÂÍ    Â—„“    «‰—‚†«‰÷«»◊.Üˉ    ÊÁ«Í…†«‰ƒ†Œ—…
  70. ¡Ïµº    ÷––ƒ    Ω·√À.«∞Ω¯    ¬‰∫Û
  71. ¯fi‡÷œ    ÷Œ÷ΔΔÂΔÏfi    Úfi¯›ÍŸ.˘Ÿ¯«ÍŸ    ÙœΔ‚ΔÂΔ¯
  72. àÍî‘    íÜêS    àÍèèÇ….ëOêi    íxÇÍÇÈ
  73. dev    botlh    joj.duv    qav    
  74. ‚ÂÒÚË    ˆÂÌÚ    Ó‚Ì˚È.‚ÔÂfi‰s    ÓÒÚ‡Ú¸
  75.